<template>
  <div>
    <van-nav-bar
      title="房屋管理"
      left-arrow
      @click-left="$router.go(-1)"
      class="title"
    />
    <!-- 收藏列表项 -->
    <HousingManagement v-for="(item, index) in list" :key="index" :item="item"></HousingManagement>
  </div>
</template>

<script>
import HousingManagement from '@/components/HousingManagement.vue'
import { getHousingManagement } from '@/api/article'
export default {
  name: 'CollectPage',
  components: {
    HousingManagement
  },
  data () {
    return {
      list: []
    }
  },
  async created () {
    const res = await getHousingManagement()
    console.log(res)
    this.list = res.body
    console.log(this.list)
  }
}
</script>

<style>

</style>
